#ifndef CVIDEOWIDGET_H
#define CVIDEOWIDGET_H

#include <QWidget>
#include <QMenu>

class CVideoWidget : public QWidget
{
    Q_OBJECT
public:
    explicit CVideoWidget(QWidget *parent = nullptr);
    QWidget *getVideoWidget(){  return _videoWidget;    }
    void getMenu(QMenu *menu){  _menu = menu;    }

signals:
    void play_pause();
    void move();

private:
    void mouseDoubleClickEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void contextMenuEvent(QContextMenuEvent *event);

private:
    QWidget *_videoWidget = nullptr;
    QMenu *_menu;
};

#endif // CVIDEOWIDGET_H
